﻿using System;
using System.Collections.Generic;
using System.Text;
//new
using JRCore.enums;

namespace JRCore.protocol
{
    /// <summary>
    /// 消息框架,总体结构
    /// </summary>
    public class Msg
    {
        /// <summary>
        /// 子协议类型
        /// </summary>
        public Enum_ProtocolType type;
        /// <summary>
        /// 消息uuid编号
        /// </summary>
        public string uuid;
        /// <summary>
        /// 反馈标记
        /// </summary>
        public bool feedback;
        /// <summary>
        /// 消息长度
        /// </summary>
        public int length;
        /// <summary>
        /// 消息数据，包含各种子协议
        /// </summary>
        public byte[] data;
        /// <summary>
        /// 空构造
        /// </summary>
        public Msg()
        {
            type = Enum_ProtocolType.Upload;
            uuid = "";
            feedback = false;
            length = 0;
            data = null;
        }
    }
}
